@import '../../styles/var.scss';

.collapsible-calendar {
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial;

  .cal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    .arrow {
      font-size: 36px;
      padding: 0 24px;
      color: #666;
      &.disabled {
        color: #ccc;
      }
    }
    .title {
      font-size: 40px;
      font-weight: 500;
      min-width: 240px;
      text-align: center;
    }
  }

  .weekdays {
    display: flex;
    padding: 8px 12px;
    font-size: 26px;
    color: #959595;
    .weekday {
      flex: 1;
      text-align: center;
    }
  }

  .slider-viewport {
    overflow: hidden;
    position: relative;
    background: transparent;
  }

  .slider {
    width: 100%;
  }

  .panel {
    width: 100%;
  }

  .panel-inner {
    display: block; /* 不使用 space-between 等会拉伸行 */
  }

  /* 每一周高度固定，与 ROW_HEIGHT 保持一致 */
  .calendar-week {
    display: flex;
    height: 80px; /* = ROW_HEIGHT */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    align-items: center;
  }

  .calendar-day {
    flex: 1;
    height: 80px; /* = ROW_HEIGHT */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;

    .date-number {
      display: inline-block;
      width: 68px;
      height: 68px;
      line-height: 68px;
      text-align: center;
      border-radius: 50%;
      color: #111;
      font-size: 34px;
      font-weight: 500;
      box-sizing: border-box;
    }

    .dots {
      display: flex;
      gap: 8px;
      margin-top: -8px;
    }
    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }
    .orange {
      background: #ffb74d;
    }
    .blue {
      background: #4fc3f7;
    }
  }

  /* 当天：实心蓝圆 */
  .calendar-day.today .date-number {
    background: transparent;
    color: $color-primary;
    border: 2px solid $color-primary;
    font-weight: 600;
  }

  /* 被选中（非今天）：空心蓝环 */
  .calendar-day.selected .date-number {
    background: $color-primary;
    color: #fff;
    font-weight: 600;
  }

  .calendar-day.not-current {
    color: #c7c7c7;
  }
  .calendar-day.not-current .date-number {
    color: #c7c7c7;
    border: none;
    background: transparent;
  }

  .toggle {
    text-align: center;
    // padding: 12px 0;
    .toggle-icon {
      color: #c7c7c7;
      font-weight: 600;
      font-size: 52px;
    }
  }
}
